package com.erp.mapper.customer;

import com.erp.domain.ErpCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ErpCustomerMapper {
    List<ErpCustomer> selectCustomerList(ErpCustomer erpCustomer);

    int addCustomer(ErpCustomer erpCustomer);

    ErpCustomer selectCustomerById(Long customerId);

    int updateCustomer(ErpCustomer erpCustomer);

    int enableCustomer(Long customerId);
    int disableCustomer(Long customerId);

    int checkCustomerRelation(@Param("customerId") Long customerId);
}
